package com.mryang.ladder;

import java.util.Scanner;

/**
 * @ClassName L1_11
 * @Description TODO
 * @Author Genius
 * @Date 2021/1/25 17:30
 */
public class L1_011 {
    public static void main(String[] args) {
        Scanner scr = new Scanner(System.in);
        String letter_new = "";
        int num = 0;
//        String l = "sdfghjkl";
//        System.out.println(l.substring(0,2)); // 左闭右开
        String letter = scr.nextLine();
        String letter_delete = scr.nextLine();
//        String letter = "abcdefg";
//        String letter_delete = "abd";

        for (int i = 0; i < letter_delete.length(); i++) {
            for (int j = 0; j < letter.length(); j++) {
                if (letter.charAt(j) == letter_delete.charAt(i)) {
//                    System.out.print(letter.charAt(i));
                    letter = letter.replaceAll(String.valueOf(letter.charAt(j)),"");
                    continue;
                }
            }
        }
        System.out.println(letter);
    }
}
